@layout("/common/_curd/_container.html"){

<link rel="stylesheet" href="/static/webuploader/webuploader.css">
<script type="text/javascript" src="/static/webuploader/webuploader.js"></script>
<script type="text/javascript" src="/static/common/uploader.js"></script>
<script type="text/javascript" src="/static/common/uploader_limit1.js"></script>
<script type="text/javascript" src="/static/common/uploader_banner2.js"></script>
<script type="text/javascript" src="/static/common/uploader_pic2.js"></script>


<form data-url="${basePath}/${code}/save" method="post" class="form-horizontal" role="form">
	<!-- 表单 -->
	<div class="form-group" style="display:block">
		<label class="col-sm-2 control-label no-padding-right"> 封面图 </label>
		<div class="col-sm-8">
			<div id="uploader-demo2">
				<input type="hidden" name="mall_goods.cover" id="webuploader_limit1" >
				<!--用来存放item-->
				<div id="fileList_limit1" class="uploader-list" style="display: flex"></div>
				<div id="filePicker_limit1">选择图片</div>
			</div>
		</div>
	</div>
	<div class="form-group" style="display:block">
		<label class="col-sm-2 control-label no-padding-right"> 商品轮播图 </label>
		<div class="col-sm-8">
			<div id="uploader-demo">
				<input type="hidden" name="mall_goods.banner_top" id="webuploader" >
				<!--用来存放item-->
				<div id="fileList" class="uploader-list" style="display: flex"></div>
				<div id="filePicker">选择图片</div>
			</div>
		</div>
	</div>


	<div class="form-group" style="display:block">
		<label class="col-sm-2 control-label no-padding-right"> 广告固定四张图 </label>
		<div class="col-sm-8">
			<div id="uploader-demo4">
				<input type="hidden" name="mall_goods.pics_middle" id="webuploader_pic2" >
				<!--用来存放item-->
				<div id="fileList_pic2" class="uploader-list" style="display: flex"></div>
				<div id="filePicker_pic2">选择图片</div>
			</div>
		</div>
	</div>


	<div class="form-group" style="display:block">
		<label class="col-sm-2 control-label no-padding-right"> 中间捐助轮播图 </label>
		<div class="col-sm-8">
			<div id="uploader-demo3">
				<input type="hidden" name="mall_goods.banner_middle" id="webuploader_banner2" >
				<!--用来存放item-->
				<div id="fileList_banner2" class="uploader-list" style="display: flex"></div>
				<div id="filePicker_banner2">选择图片</div>
			</div>
		</div>
	</div>

		<!-- 表单 -->
		@ var _table="mall_goods";
		@ var _col=[
		@			  {name:"标题", index:"title", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"批次", index:"pi_num", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"生产厂家", index:"industry", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"进货价", index:"price_buy", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"销售价", index:"price_sale", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"购进数量", index:"buy_num", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"销量", index:"sale_num", type:"text",newline:true,length:8,required:"required"},
	@			  {name:"库存", index:"kucun", type:"text",newline:true,length:8,required:"required"},
	@			  {name:"取货地址", index:"address", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"每人每天限购量", index:"limit", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"捐助金额", index:"juanzhu", type:"text",newline:true,length:8,required:"required"},
	@			  {name:"内容", index:"content", type:"ueditor",newline:true,length:8,required:"required"}
		@		   ];
		@ include("/common/_curd/_add.html", {"col":_col, "table":_table}){}
		
		<!-- 按钮 -->
		@ include("/common/_curd/_btn.html", {btn_save:"新增", btn_close:"关闭"}) {}
	</form>

@}
